package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/*
 *  @author 雨安
 *  类名： Collect
 *  创建时间：2025/2/12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Collect implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键id
    @TableId(type = IdType.AUTO)
    private Long id;

    //用户id
    private Long userId;

    //加好友任务表主键id
    private Long addId;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //创建人
    private String createBy;

    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    //修改人

    private String updateBy;

    //逻辑删除
    private Boolean deleteFlag;

    //页码
    @TableField(exist = false)
    public Long current;

    //行数
    @TableField(exist = false)
    private Long size;

}
